/*
 * Some general styling
 */

* {
    box-sizing: border-box;
}

:root {
    --item-height: 100px;
}

/* Polished casino container styles (matches reference) */
.table {
    max-width: 1000px;
    margin: 28px auto;
    padding: 36px 40px;
    border-radius: 80px;
    background: radial-gradient(circle at top left, #1b6a2f 0%, #11421f 60%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 6px 40px rgba(0,0,0,0.35);
    border: 6px solid #ffd700;
}

.table h1{
    margin: 0 0 18px 0;
    font-size: 34px;
    color: #ffd700;
    text-align: center;
    text-shadow: 0 6px 18px rgba(255,215,0,0.35);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
}
.table .title-icon{ width:36px; height:36px; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.6)); }

body {
    background-color: #444;
    margin: 0;
}

/*
 * Style the orange box
 */

.start-button {
    display: block;
    margin: 1em auto;
}

#container {
    /* transparent container so outer page theme applies */
    background-color: transparent;
    padding: 16px 6px;
    box-shadow: none;
    position: static;
    margin: 0 auto;
    display: block;
    max-width: 640px;
    width: 100%;
}

.window {
    position: relative;
    overflow: hidden;
    height: calc(3 * var(--item-height));
}

.window::before {
    content: "";
    clear: both;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
}

.window::after {
    content: "";
    clear: both;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.window-border {
    padding: 8px;
    background: linear-gradient(180deg,#111213,#0b0b0b);
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), inset 0 6px 18px rgba(0,0,0,0.6);
    border-radius: 12px;
}

/*
 * Reels and icon styling
 */

.icon {
    width: 80px;
    height: var(--item-height);
    display: block;
    position: relative;

    /*animation: wiggle 0.1s linear infinite;*/
}

 .outer-spacer {
    /* visible separator between reels */
    width: 2px;
    height: 100%;
    float: left;
    border-right: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15));
}

 .outer-col {
    overflow-y: hidden;
    /* make five reels fill the available width (5 spacers of 2px -> 10px) */
    width: calc((100% - 10px) / 5);
    float: left;
    background-color: #0b0d10;
    background-image: linear-gradient(180deg,#0b0d10,#0f1113);
    height: calc(var(--item-height) * 3);
}

 .col {
    padding: 0 4px;
    will-change: transform;
    transform: translateY(calc(-100% + var(--item-height) * 3));
}

 .col img {
    width: 115%;
    height: var(--item-height);
    margin: -6% 0 0 -6%;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 3;
}

/* Spin button and stats styling when loaded from slot.html */
.spin-row{ display:flex; gap:12px; justify-content:center; align-items:center; margin-top:18px }
.spin-button{ padding:12px 22px; border-radius:8px; background:linear-gradient(135deg,#ffd700 0%,#ffed4e 100%); color:#111; font-weight:800; border:none; cursor:pointer }
.stats-row{ display:flex; gap:14px; justify-content:center; margin-top:18px; flex-wrap:wrap }
.stat-box{ background: rgba(0,0,0,0.12); padding:12px 18px; border-radius:10px; border:2px solid rgba(255,215,0,0.08); color:gold; min-width:120px }
.stat-label{ font-size:0.85em; color:#cfcfcf }
.stat-value{ font-size:1.4em; font-weight:800 }

/* shadow effect behind the items */
.col .icon::after {
    content: "";
    clear: both;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    background-color: transparent;
    box-shadow: none; /* remove heavy dark halo */
    z-index: 2;
    border-radius: 100%;
}

/*
 * Spinning animation
 */

#container.spinning .outer-col:nth-of-type(2) .col {
    animation-delay: 0.01s;
}

#container.spinning .outer-col:nth-of-type(3) .col {
    animation-delay: 0.02s;
}

#container.spinning .outer-col:nth-of-type(4) .col {
    animation-delay: 0.03s;
}

#container.spinning .col {
    animation-name: scroll;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.65, .97, .72, 1);
}

@keyframes scroll {
    to {
        transform: translateY(0);
    }
}

/*@keyframes wiggle {
    0% {
        transform: rotate(7deg);
    }
    50% {
        transform: rotate(-7deg);
    }
    100% {
        transform: rotate(7deg);
    }
}*/